package com.mate.cloud.auth.constant;


import com.mate.cloud.common.config.PropertyConfig;
import com.mate.cloud.common.constant.BaseExceptionCodeEnum;

/**
 * 异常码枚举
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2025/6/4 9:59
 * @updateUser: MI
 * @updateTime: 2025/6/4 9:59
 * @updateRemark: 修改内容
 * @version: 1.0
 */
public enum LoginUserExceptionCodeEnum implements BaseExceptionCodeEnum {
    /**
     * 用户名不存在
     */
    USER_NOT_FOUND_ERROR("100001")
    ;
    private final String code;

    LoginUserExceptionCodeEnum(String code) {
        this.code = code;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    public String getMassage(){
        return PropertyConfig.getProperty(this.getCode());
    }

}
